package com.yx.elastic.elasticcm.orm;

import java.lang.annotation.*;

/**
 * Created by chenzp on 18-8-2.
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface EDocId {

    /**
     * 文档字段的名称
     * @return
     */
    String fieldName() default "";

    /**
     * id生成的规则
     * @return
     */
    EIdType type() default EIdType.AUTO;
}
